exports.init = function(app) {
  // 根据日期班级筛选
  app.post("/net/schooladmin/school-order/statement-by-merchant", function(req, res) {
    res.send({
      errcode: "0",
      errmsg: "ok",
      data: [
        {
          paymentDate: "2017/11/01-2017/11/07",
          id: 1,
          classId: 1,
          className: "2017级一班",
          schoolId: 1,
          schoolName: "龙华小学",
          payNum: "30",
          payAmount: "200"
        }
      ],
      page: {
        currentPage: 1,
        currentCount: 1,
        totalCount: 1,
        totalPage: 1
      }
    });
  });

  // 班级结算明细
  app.post( "/net/schooladmin/school-order/statement-by-merchant-school-detail", function(req, res) {
      res.send({
        errcode: "0",
        errmsg: "ok",
        data: [
          {
            paymentDate: "1509984001",
            id: 1,
            classId: 1,
            className: "2017级一班",
            schoolId: 1,
            schoolName: "龙华小学",
            payNum: 10,
            payAmount: 100
          }
        ],
        page: {
          currentPage: 1,
          currentCount: 1,
          totalCount: 1,
          totalPage: 1
        }
      });
    }
  );

  // 班级缴费流水
  app.post("/net/schooladmin/school-order/statement-by-merchant-school-water", function(req, res) {
      res.send({
        errcode: "0",
        errmsg: "ok",
        data: [
          {
            id: 112,
            orderNo: "11100002017102716411408572",
            studentName: "王先杰",
            cardNo: "513001199308157490",
            payTime: 1509541135,
            price: 1,
            schoolPaymentSkuName: "缴费缴费哦"
          },
          {
            id: 113,
            orderNo: "11100002017102716561847662",
            studentName: "王先杰",
            cardNo: "513001199308157490",
            payTime: 1509541135,
            price: 1,
            schoolPaymentSkuName: "缴费"
          },
          {
            id: 114,
            orderNo: "11100002017102717022362281",
            studentName: "王先杰",
            cardNo: "513001199308157490",
            payTime: 1509541135,
            price: 1,
            schoolPaymentSkuName: "缴费"
          },
          {
            id: 115,
            orderNo: "11100002017102717065325237",
            studentName: "王先杰",
            cardNo: "513001199308157490",
            payTime: 1509541135,
            price: 1,
            schoolPaymentSkuName: "缴费"
          }
        ],
        page: {
          currentPage: 1,
          currentCount: 1,
          totalCount: 1,
          totalPage: 1
        }
      });
    }
  );

  // 已缴费金额，已缴费笔数
  app.post("/net/schooladmin/school-order/count-payment-info-by-statement", function(req, res) {
      res.send({
        errcode: "0",
        errmsg: "ok",
        data: {
          payAmount: 1111,
          payNum: 111
        }
      });
    }
  );

  // 结算详情
  app.post("/net/schooladmin/school-order/statement-detail", function(req, res) {
    res.send({
      errcode: "0",
      errmsg: "ok",
      data: {
        id: 57,
        orderNo: "011200002017112014045775533",
        schoolPaymentSkuName: "2017秋季学费",
        schoolPaymentSkuAmount: 2,
        payAmount: 2,
        noPayAmount: 0,
        price: 2,
        payTime: 1511157908,
        tradeNo: "021200002017112014045827904",
        className: "星光大（1）班",
        name: "鹿晗",
        cardNo: "XGQTZJ0007",
        mobile: "18664334600",
        sex: 1,
        idType: 2,
        gradeYear: 2016,
        infoNo: "XGXH2016007"
      }
    });
  });

  // 按通道日期筛选
  app.post("/net/schooladmin/channel_statement/get-list", function(req, res) {
    res.send({
      errcode: "0",
      errmsg: "ok",
      data: [
        {
          channelId: 1,
          channelName: "阳光幼儿园",
          payNum: "5",
          payAmount: "7",
          rate: "0.12300000",
          factorage: "0.49200000",
          realityPay: "6.50800000"
        },
        {
          channelId: 2,
          channelName: "阳光幼儿园",
          payNum: "10",
          payAmount: "7",
          rate: "0.12500000",
          factorage: "0.49200000",
          realityPay: "6.50800000"
        }
      ],
      page: {
        currentPage: 1,
        currentCount: 1,
        totalCount: 1,
        totalPage: 1
      }
    });
  });

  // 按通道统计信息
  app.post("/net/schooladmin/channel_statement/count", function(req, res) {
    res.send({
      errcode: "0",
      errmsg: "ok",
      data: {
        payAmount: 1111,
        payNum: 111,
        factorage: "0.49200000",
        realityPay: "6.50800000"
      }
    });
  });
  // 按通道结算明细列表
  app.post("/net/schooladmin/channel_statement/get-list-by-detail", function(req, res) {
    res.send({
      errcode: "0",
      errmsg: "ok",
      data: [
        {
          channelId: 1,
          channelName: '阳光幼儿园',
          startTime: 1513180800,
          payNum: 5,
          payAmount: 7,
          rate: 0.12300000,
          factorage: 0.49200000,
          realityPay: 6.50800000,
          paymentType: 1
        },
        {
          channelId: 1,
          channelName: '阳光幼儿园啊',
          startTime: 1513100800,
          payNum: 5,
          payAmount: 7,
          rate: 0.12300000,
          factorage: 0.49200000,
          realityPay: 6.50800000,
          paymentType: 2
        }
      ],
      page: {
        currentPage: 1,
        currentCount: 1,
        totalCount: 1,
        totalPage: 1
      }
    });
  });
  // 按通道结算流水
  app.get("/net/schooladmin/school-payment-sku/find-all-by-channel", function(req, res) {
    res.send({
      errcode: "0",
      errmsg: "ok",
      data: [
        {
          "id": 238,
          "name": "春游"
      },
      {
          "id": 237,
          "name": "pay"
      },
      {
          "id": 236,
          "name": "入门项目"
      },
      {
          "id": 230,
          "name": "项目测试2-dly"
      },
      {
          "id": 229,
          "name": "项目测试-dly"
      },
      {
          "id": 231,
          "name": "全款"
      },
      {
          "id": 232,
          "name": "多个缴费"
      },
      {
          "id": 234,
          "name": "52"
      },
      {
          "id": 233,
          "name": "测试"
      },
      {
          "id": 235,
          "name": "2"
      }]
    });
  });

  // 按通道结算明细统计信息
  app.post("/net/schooladmin/channel_statement/count-by-detail", function(req, res) {
    res.send({
      errcode: "0",
      errmsg: "ok",
      data: {
        payAmount: 2222,
        payNum: 222,
        factorage: "0.49200000",
        realityPay: "6.50800000"
      }
    });
  });

  // 按通道结算流水统计信息
  app.post("/net/schooladmin/channel_statement/statement-by-water", function(req, res) {
    res.send({
      errcode: "0",
      errmsg: "ok",
      "data": [
        {
          "id": 221,
          "orderNo": "011100002017120817412616689",
          "studentName": "打毛",
          "cardNo": "42112719881118372X",
          "payTime": 1512727079,
          "price": 3,
          "schoolPaymentSkuName": "项目测试2-dly"
      }
    ]
    });
  });
  // 按通道结算流水列表
  app.post("/net/schooladmin/channel_statement/count-statement-by-water", function(req, res) {
    res.send({
      errcode: "0",
      errmsg: "ok",
      data: {
        payAmount: 2222,
        payNum: 222,
        factorage: "0.49200000",
        realityPay: "6.50800000"
      }
    });
  });
};
